//
/******************************************************
        File name:    main.c
        Author:       Bitat (陆叁柒)
        Gitee :       https://gitee.com/bitat
        Email :       737166381@qq.com
        History:      2023/1/9
*******************************************************/


#include <stdio.h>
#include <string.h>

int main()
{
    int i = 0;
    int flag = 0;
    char password[20] = "";
    for(i = 0; i < 3; i++)
    {
        printf("请输入密码：>");
        scanf("%s",password);
        if (strcmp(password,"5201314") == 0)
        {
            flag = 1;
            printf("输入正确\n");
            break;
        }
        else
        {
            printf("输入错误\n");
        }
    }
    if(flag == 0)
    {
        printf("三次密码输入错误\n");
    }
    
    return 0;
}
